package feishu

import (
	"fmt"
	"xiaoniu-task/pkg"
)

func PushText(text string) {
	url := "https://open.feishu.cn/open-apis/bot/v2/hook/590fe4bb-b0bf-4ed0-a8a2-15cd4e9e6ac5"
	secret := "pDCvKcAnPoieJzEj6wRgkc"
	sendStatus, err := pkg.SendText(url, text, secret)
	if err != nil {
		fmt.Println("发送消息出错：", err.Error())
		return
	}
	if sendStatus {
		fmt.Println("发送消息成功！")
	}
}
